<?php
/**
* This template is used to display the home page.
*
* @package vn.news
* @since vn.news 1.0
*
*/
get_header(); ?>

<!-- BEGIN .row -->
<div class="row">

	<!-- BEGIN .homepage -->
	<div class="homepage">

	<?php if ( is_active_sidebar( 'home-sidebar' ) ) : ?>

		<!-- BEGIN .featured-posts -->
		<div class="featured-posts">

			<!-- BEGIN .eleven columns -->
			<div class="eleven columns">

				<!-- BEGIN .home-news -->
				<div class="home-news">

					<?php

						if(of_get_option("enable_news_slider") == 1)
							get_template_part( 'content/home', 'newslider' );

						if(of_get_option("enable_single_column") == 1)
							get_template_part( 'content/home', 'singlecolumn' );

						if(of_get_option("enable_featured_categories") == 1)
							get_template_part( 'content/home', 'featuredcategories' );
					?>

				<!-- END .home-news -->
				</div>

			<!-- END .eight columns -->
			</div>

			<!-- BEGIN .five columns -->
			<div class="five columns">

				<?php get_sidebar('home'); ?>

			<!-- END .five columns -->
			</div>

		<!-- END .featured-posts -->
		</div>

	<?php else : ?>

		<!-- BEGIN .featured-posts -->
		<div class="featured-posts">

			<!-- BEGIN .sixteen columns -->
			<div class="sixteen columns">

				<!-- BEGIN .home-news -->
				<div class="home-news radius-full shadow padding-big">

					<?php
						if(of_get_option("enable_single_column") == 1)
							get_template_part( 'content/home', 'singlecolumn' );

						if(of_get_option("enable_featured_categories") == 1)
							get_template_part( 'content/home', 'featuredcategories' );

					?>

				<!-- END .home-news -->
				</div>

			<!-- END .sixteen columns -->
			</div>

		<!-- END .featured-posts -->
		</div>

	<?php endif; ?>

	<!-- END .homepage -->
	</div>

<!-- END .row -->
</div>

<?php get_footer(); ?>